package com.design.原型链模式;

public class TestMain {

	
	public static void main(String[] args) throws CloneNotSupportedException {
		
		PrototypeManager pm = new PrototypeManager();
		
		Prototype p = new ConcrecePrototype2();
		ConcrecePrototype2 cc = (ConcrecePrototype2) p.clone();
		pm.add(cc);
		
		System.out.println(p);
		System.out.println(pm.get(0));
		System.out.println(pm.get(0));
		
		
	}
	
}
